package org.jeecg.modules.networking.util;

import java.util.HashMap;
import java.util.Map;

public class GoodsMapper {
    private static final Map<String, String> goods = new HashMap<>();

    static {//1—原料；2—辅料；3—产品；4—其他；
        goods.put("原材料", "1");
        goods.put("副资材", "2");

        goods.put("空运部品", "3");
        goods.put("成品", "3");
        goods.put("部品", "3");

        goods.put("劳保", "4");
        goods.put("危废", "4");
        goods.put("消耗品", "4");
        goods.put("包装材料", "4");
        goods.put("送餐", "4");
        goods.put("其他", "4");
    }

    public static String getGoodsType(String vehicleType) {
        return goods.getOrDefault(vehicleType, "4");
    }

}
